<table class="table">
    <thead>
    <tr>
        <th width="15%">设备名</th>
        <th width="10%">型号款数</th>
        <th width="10%">设备品牌</th>
        <th width="10%">应用领域</th>
        <th width="10%">类别</th>
        <th width="15%">参考价</th>
        <th width="10%">审核状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    @forelse ($dataList as $key=>$value)
    <tr>
        <td>
            <div class="tit">
                {{$value['name']}}
            </div>
        </td>
        <td>{{$value['modelNum']}}</td>
        <td>{{$value['brand']}}</td>
        <td>{{$value['domain']}}</td>
        <td>{{$value['type']}}</td>
        <td>{{$value['price']}}</td>
        <td>
            @if ($value['authStatus']==0)
                待提交审核
            @elseif($value['authStatus']==1)
                审核中
            @elseif($value['authStatus']==2)
                未通过
            @elseif($value['authStatus']==3)
                通过
            @endif
        </td>
        <td>
            <input class="j_id" type="hidden" value="{{$value['id']}}">
            <a href="/user/device_view?device_id={{$value['id']}}">详情</a>
            @if ($value['authStatus']!=2 && $value['authStatus']!=1)
                <span class="split">|</span>
                <a href="/user/device_edit?device_id={{$value['id']}}">编辑</a>
            @endif
            @if ($value['authStatus']!=1)
                <span class="split">|</span>
                <a class="j_del">删除</a><br>
            @endif
            @if ($value['authStatus']==0)
                <span class="split">|</span>
                <a class="j_status">提交审核</a>
            @endif
            @if ($value['authStatus']== 0 || $value['authStatus']==3)
                <span class="split">|</span>
                <a class="j_model" data-id="{{$value['id']}}" data-param="{{json_encode($value['param'])}}">添加型号</a>
            @endif

        </td>
    </tr>
    @empty
    <tr>
        <td colspan="8">暂无设备</td>
    </tr>
    @endforelse
    </tbody>
</table>
<input type="hidden" data-cur="{{$currentPage}}" data-tot="{{$pageCount}}" id="pagination_info">
<div class="site-page site-page-narrow j_page"></div>
